import axios from "@/libs/api.request"
let baseUrl = "http://192.168.1.68:18082"

/**
 *  {name} 获取普通用户
 *  {params} 
 *  {methods} get
 * 
*/
export const getCommonUserList = (data) => {
    return axios.request({
        url: baseUrl + "/user/user/get_ordinary_users",
        params: data,
        method: "get"
    });
}

/**
 *  {name} 冻结.解冻用户
 *  {params} userId
 *  {params} userStatus
 *  {methods} put
 * 
*/
export const freezeOrUnFreezeUser = (data) => {
    return axios.request({
        url: baseUrl + "/user/user",
        data: data,
        method: "put"
    });
}

/**
 *  {name} 获取会员
 *  {params} 
 *  {methods} get
 * 
*/
export const getMemberUserList = (data) => {
    return axios.request({
        url: baseUrl + "/user/user/get_membership",
        params: data,
        method: "get"
    });
}